package com.tao.dao;

import java.util.List;

import com.tao.entity.CarGood;
import com.tao.entity.ShoppingCar;

public interface ShoppingCarDao {

	//加入购物车 
	public int addShoppingCar(ShoppingCar shoppingCar);
	
	public int updateShoppingCar(int pid,int num);
	
	public List<ShoppingCar> findCarById(int id);
	
	//根据商品Id来查购物车 
	public List<ShoppingCar> findCarByPid(int id);
	
	//查找购物车商品
	public List<CarGood> findShoppingCarById(int id);
	
	//http://www.cnblogs.com/yqskj/articles/2203307.html
	
	//删除购物车通过购物车id
	public int deleteCar(List<Integer> carids);
}
